﻿using HDSmartCommunity.DAL;
using HDSmartCommunity.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HDSmartCommunity.BUS
{
    public class ReportBUS
    {
        public List<Incarevents> QuerytIncarevents(Incarevents incarevents)
        {
            ReportDAL da = new ReportDAL();
            List<Incarevents> list = da.QueryIncarevents(incarevents);
            return list;
        }

        public int QuerytIncareventsCount(Incarevents incarevents)
        {
            ReportDAL da = new ReportDAL();
            int count = da.QueryIncareventsCount(incarevents);
            return count;
        }

        public List<Outcarevents> QuerytOutcarevents(Outcarevents outcarevents)
        {
            ReportDAL da = new ReportDAL();
            List<Outcarevents> list = da.QueryOutcarevents(outcarevents);
            return list;
        }

        public int QuerytOutcareventsCount(Outcarevents outcarevents)
        {
            ReportDAL da = new ReportDAL();
            int count = da.QueryOutcareventsCount(outcarevents);
            return count;
        }

        public List<Equipment> QuerytEquipment(Equipment equipment)
        {
            ReportDAL da = new ReportDAL();
            List<Equipment> list = da.QueryEquipment(equipment);
            return list;
        }

        public int QuerytEquipmentCount(Equipment equipment)
        {
            ReportDAL da = new ReportDAL();
            int count = da.QueryEquipmentCount(equipment);
            return count;
        }

        public List<ModeRecord> QueryModeRecord(ModeRecord modeRecord)
        {
            ReportDAL da = new ReportDAL();
            List<ModeRecord> list = da.QueryModeRecord(modeRecord);
            return list;
        }

        public int QueryModeRecordCount(ModeRecord modeRecord)
        {
            ReportDAL da = new ReportDAL();
            int count = da.QueryModeRecordCount(modeRecord);
            return count;
        }
    }
}
